package auction.dao;

import auction.entity.Auctionrecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface AuctionRecordDao {

    //查询这个商品的竞拍记录根据商品id
    List<Auctionrecord>  selectAuctionRecordById(@Param("auctionId") Integer auctionId);

    //查看竞拍记录表的信息和对应竞拍人的姓名
    List<Auctionrecord> getAuctionRecordsWithUserDetails(@Param("auctionId") Integer auctionId);

    //添加记录方法
    Integer insertAuctionRecord(Auctionrecord auctionrecord);

    //根据商品的id查询最大竞拍价格
    Integer selectMatSalePrice(@Param("auctionId") Integer auctionId);

    //查询商品是否有竞拍记录,根据商品Id
    Integer isHavingAuctionRecord(@Param("auctionId") Integer auctionId);





}
